#-----------------------------------------------------------------------
#   Nucleation - Nucleation (an unofficial OpenFOAM Installer) lower 
#the work to have foam in your system.
#
#   visit: www.nucleation-installer.com
#
#-----------------------------------------------------------------------
#    This file is part of Nucleation.
#
#    Nucleation is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Nucleation is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Nucleation.  If not, see <http://www.gnu.org/licenses/>.
#-----------------------------------------------------------------------

echo "installation of simpleFoam and more"
echo ". /opt/openfoam170/etc/bashrc  " >> ~/.bashrc
sudo su -
echo "deb http://www.openfoam.com/download/ubuntu lucid main" >> /etc/apt/sources.list  
apt-get update 
apt-get install openfoam170  
apt-get install paraviewopenfoam380  
echo "installation finished"
